/* src/components/AIFloatingWindow/index.css */
.ai-floating-window {
  position: fixed;
  /* right: 400px; */
  bottom: 200px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
  overflow: hidden;
  z-index: 9999;
}

.ai-floating-window.dragging {
  cursor: move;
  transition: none;
}

.header {
  background: #2d3748;
  color: white;
  padding: 12px;
  cursor: move;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.toggle-btn {
  background: none;
  border: none;
  color: white;
  font-size: 16px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.2s;
}

.toggle-btn:hover {
  background: rgba(255,255,255,0.1);
}

.content {
  display: flex;
  flex-direction: column;
  height: calc(100% - 48px);
}

.message-container {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
}

.message {
  margin: 8px 0;
  padding: 8px 12px;
  border-radius: 12px;
  max-width: 80%;
}

.message.user {
  background: #e2e8f0;
  margin-left: auto;
}

.message.ai {
  background: #bee3f8;
  margin-right: auto;
}

.input-area {
  display: flex;
  padding: 12px;
  border-top: 1px solid #e2e8f0;
}

.input-area input {
  flex: 1;
  padding: 8px;
  border: 1px solid #cbd5e0;
  border-radius: 4px;
  margin-right: 8px;
}

.input-area button {
  background: #4299e1;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}

.input-area button:hover {
  background: #3182ce;
}